﻿<Window x:Class="DesktopNotes.NotesWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Window2" Height="200" Width="200" WindowStyle="None" Loaded="Window_Loaded" MouseLeftButtonDown="Window_MouseLeftButtonDown" ForceCursor="False" ShowInTaskbar="False" AllowsTransparency="True" Background="Transparent" ResizeMode="CanResize">
    <Window.ContextMenu>
        <ContextMenu Name="cm">
            <MenuItem Header="New Note" Click="NewTab_Click"/>
            <MenuItem Header="Rename Note" Click="ChangeTitle_Click" />
            <MenuItem Header="Close Note" Click="Close_Click" />
            <MenuItem Header="Delete Note" Click="Delete_Click" />
        </ContextMenu>
    </Window.ContextMenu>

    <Grid x:Name="LayoutRoot">
        <Rectangle Fill="#FFF9F110" Stroke="#FF000000"/>
        <Label Name="Title" VerticalAlignment="Top" Height="21" Content="Note"/>

        <RichTextBox Margin="0,21,0,0" Background="{x:Null}" OpacityMask="{x:Null}" BorderBrush="{x:Null}" KeyUp="RichTextBox_KeyUp" Name="RTBText" MouseUp="RTBText_MouseUp">
            <RichTextBox.Resources>
                <Style TargetType="{x:Type Paragraph}">
                    <Setter Property="Margin" Value="0"/>
                </Style>
            </RichTextBox.Resources>
            <FlowDocument>
                <Paragraph>
                    <Run Text=""/>
                </Paragraph>
            </FlowDocument>
        </RichTextBox>
        <Label VerticalAlignment="Top" Height="21" Content="X" HorizontalAlignment="Right" Width="18" MouseLeftButtonDown="Label_MouseLeftButtonDown" />
    </Grid>
</Window>
